package com.chen.hotel.annotation;


import com.chen.hotel.enums.AuthEnum;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target({ElementType.TYPE, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface LoginToken {
    // 默认值为需要认证
    boolean required() default true;
    // 用户的权限等级
    AuthEnum auth() default AuthEnum.NORMAL;
}
